﻿using System.Security.Cryptography;
using Microsoft.Extensions.DependencyInjection;

namespace WeatherSDK.Test;

internal class Program
{
    static async Task Main(string[] args)
    {
        IServiceCollection serviceCollection = new ServiceCollection();
        serviceCollection.AddWeatherSdk();

        var serviceProvider = serviceCollection.BuildServiceProvider();

        var sdk = serviceProvider.GetRequiredService<IWeatherApi>();
        var weather = await sdk.GetLive("320582");
        Console.WriteLine(weather);
    }
}